
package com.insigma.business.qrcode.soldier.dao;


import com.insigma.business.qrcode.soldier.entity.DataScreenStatisticsDO;
import com.insigma.business.qrcode.soldier.request.DataScreenStatisticsBSearcher;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


public interface DataScreenStatisticsDao {

    
    List<DataScreenStatisticsDO> search(final DataScreenStatisticsBSearcher innerSearcher);

    
    DataScreenStatisticsDO get(final String id);

    
    Integer insert(final DataScreenStatisticsDO dataScreenStatisticsDO);

    
    Integer update(final DataScreenStatisticsDO dataScreenStatisticsDO);

    
    Integer delete(@Param("id") final String id,
                   @Param("modifierType") final String modifierType,
                   @Param("modifierId") final String modifierId);

    
    DataScreenStatisticsDO getLastByAreaCode(@Param("adminAreaCode")String adminAreaCode,
                                             @Param("type") String type);

    
    DataScreenStatisticsDO getLastByAreaCodeAndTime(@Param("adminAreaCode") String adminAreaCode,
                                                    @Param("type") String type,
                                                    @Param("date") Date date);
}
